package com.qiangou.rest;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.entity.AdvMes;
import com.qiangou.service.AdvMesService;
import com.qiangou.service.CreditService;
import com.qiangou.service.TagsService;
import com.rsa.Base64;
import com.rsa.RSA;
import com.util.FTPUtil;

/**
 * @author yuan
 */

@Component
@Path("/v3")
public class JerseyControllertwo {

	@Resource(name = "AdvMesService")
	private AdvMesService AdvMesService;

	@Resource(name = "tagsService")
	private TagsService tagsService;


	/**
	 * 通过卡号得到标签组
	 */

	@GET
	@Path("/getTagsByCreditid")
	@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_ATOM_XML })
	public Response getTagsByCreditid(@QueryParam("id") int id) {
	//	String.valueOf(id);
		 List<Object>  list=new ArrayList<Object>();
	
		String str="{MsgHead:{},MsgBody:{},MsgMac:{Signature:}}";
		list=tagsService.getTagsByCreditid(id);
	    
		return Response.status(200).entity(str).build();
	}
	
	
	
	
	
	



}
